package cool.xinya.ess.common;

/**
 * 返回结果Result对象属性值枚举，可根据实际情况进行扩展
 *
 * @author jiangwenbo
 * @date 2019/6/17.
 */
public enum ResultEnum {
    LOGIN_ERROR(-1, "登录失效"),
    JURISDICTION_ERROR(-2, "没有权限,请向管理员申请"),
    UNKNOWN_ERROR(1, "运行异常"),
    SUCCESS(0, "操作成功");

    private final Integer code;
    private final String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
